package com.shf.mapper;

import com.shf.entity.Orders;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单 持久层
 * @author 叶枫
 */
public interface OrderMapper {
    /**
     * 添加订单
     */

    void saveOrder(Orders orders);

    List<Orders> findAllOrder();

    /**
     * 显示订单详情
     * @param id
     */
    Orders findOrderDetail(String id);
/**
 * 根据id删除订单
 */
@Delete("delete from orders where id =#{id}")
    void deleteById(String id);

    void deleteManyOrder(@Param("ids") String[] ids);

    /**
     * 根据id查询订单信息
     * @param id
     * @return
     */

    Orders selectOrderById(String id);

    /**
     * 根据id修改订单信息
     * @param orders
     */
    void editOrder(Orders orders);
}

